import {getUserInfo} from '@/apis/layout.js'
import { ref } from 'vue'
import { defineStore } from 'pinia'

export const userInfoStore = defineStore('userInfo',()=>{
    const userInfo = ref([])

    const getTheUserInfo = async () => {
        const res = await getUserInfo()
        userInfo.value = res.data
    }

    return {
        userInfo,
        getTheUserInfo
    }
})